package com.zed.code.mapping;

import com.zed.code.model.Pricehistory;
import com.zed.code.model.PricehistoryExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PricehistoryMapper {
    long countByExample(PricehistoryExample example);

    int deleteByExample(PricehistoryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Pricehistory record);

    int insertSelective(Pricehistory record);

    List<Pricehistory> selectByExample(PricehistoryExample example);

    Pricehistory selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Pricehistory record, @Param("example") PricehistoryExample example);

    int updateByExample(@Param("record") Pricehistory record, @Param("example") PricehistoryExample example);

    int updateByPrimaryKeySelective(Pricehistory record);

    int updateByPrimaryKey(Pricehistory record);

    Pricehistory selectDeviceIdTop(@Param("deviceId") String deviceId, @Param("status") Integer Status);
}